package cn.gson.school.entity.jiaoxue;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

@Entity
@Table(name="tb_jx_zhuanban")
public class ZhuanBanEntity { 
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "zhuanban_id")
	private Long zhuanbanId;

	@Column(name = "old_class_id")
	private Long oldClassId;

	@Column(name = "new_class_id")
	private Long newClassId;

	@ManyToOne
	@JoinColumn(name="studentinfo_id")
	private StudentEntity student;
	
	@Column(name="zhuanban_type")
	private Integer type;

	
	@Column(name="zhuanban_time")
	@JsonFormat(pattern = "yyyy-MM-ddHH:mm:ss")
	private Date zhuangBanTime;
	
	@Column(name="is_delete")
	private Integer delete;
	
	@Column(name="add_plus")
	private String addplus;
	
	

	public String getAddplus() {
		return addplus;
	}

	public void setAddplus(String addplus) {
		this.addplus = addplus;
	}

	public Long getZhuanbanId() {
		return zhuanbanId;
	}

	public void setZhuanbanId(Long zhuanbanId) {
		this.zhuanbanId = zhuanbanId;
	}

	public Long getOldClassId() {
		return oldClassId;
	}

	public void setOldClassId(Long oldClassId) {
		this.oldClassId = oldClassId;
	}

	public Long getNewClassId() {
		return newClassId;
	}

	public void setNewClassId(Long newClassId) {
		this.newClassId = newClassId;
	}

	public StudentEntity getStudent() {
		return student;
	}

	public void setStudent(StudentEntity student) {
		this.student = student;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Date getZhuangBanTime() {
		return zhuangBanTime;
	}

	public void setZhuangBanTime(Date zhuangBanTime) {
		this.zhuangBanTime = zhuangBanTime;
	}

	public Integer getDelete() {
		return delete;
	}

	public void setDelete(Integer delete) {
		this.delete = delete;
	}

	@Override
	public String toString() {
		return "ZhuanBanEntity [zhuanbanId=" + zhuanbanId + ", oldClassId=" + oldClassId + ", newClassId=" + newClassId
				+ ", student=" + student + ", type=" + type + ", zhuangBanTime=" + zhuangBanTime + ", delete=" + delete
				+ ", addplus=" + addplus + "]";
	}

}
